Skip to content

fullroot: iTunes_Control for MusicLibrary (Settings abort on 24B156) - #381

Merged
claudiusthebot merged 3 commits into
mainfrom
agent/scion-settings-272/itunes-control
Nov 18, 2026
Merged

claudiusthebot merged 3 commits into
mainfrom
agent/scion-settings-272/itunes-control

Conversation

@claudiusthebot

Copy link
Copy Markdown
Collaborator

Settings (Preferences) aborts on iOS 27.2.1 (24B156) on phone 1. The console's ten frames, symbolicated against 24B156's shared cache, show an Objective-C exception that nothing catches. It is rethrown from -[ML3MusicLibrary libraryUID] → valueForDatabaseProperty: → databaseConnectionAllowingWrites:withBlock: and ends in abort().

MusicLibrary raises that exception when it cannot open a database connection and one of its path checks fails. The check that fails here is ML3DatabaseConnectionCheckPathiTunesControl (reason "<path> does not exist."). /private/var/mobile/Media/iTunes_Control is missing on both the 24B156 root and the 24A446 root: an iPhone gets it from a restore, and this port never restores. atc aborts with the same frames 8 to 17 times a boot on both builds. That is the cause already noted in UI-NIGHT-1114.md; its fix (70-ui-stability.sh) was never part of the full-root build.

  • tools/ios27/fullroot/steps.d/45-media-library.sh: new step that makes iTunes_Control, iTunes/ and Music/, mode 0755, owned by mobile (501). It is on by default because it puts back a directory every iPhone has. ENABLE_MEDIA_LIBRARY_DIRS=0 turns it off. undo removes the directories only when they are empty.
  • check-root.sh: an info line that says whether the directory is there.
  • docs/ios27/SETTINGS.md: the symbolicated frames, MusicLibrary's checks, what was ruled out (the camera work, a memory fault, stand-ins), what differs from 24A446, and two separate problems: the PlugInKit checkEnvironment: aborts of the app extensions and the blank Bluetooth page.

Not run on a phone yet. The test boot (the step applied to the current root, owner image o272) is queued with the phone tester. If Settings still aborts with the same frames, the next check in MusicLibrary's order is the database file. The next test then is to put com.apple.medialibraryd back (it is a speed trim), and SETTINGS.md says so.

Not tested: a full root build with the step. The step was run on a scratch tree as a non-root user: it creates the directories, a second run changes nothing, undo removes them and ENABLE_MEDIA_LIBRARY_DIRS=0 skips it. docs-check and provenance-check pass. Nothing touches the kernel, drivers/ or the xnu fork.

🤖 Generated with Claude Code

…y mobile

MusicLibrary raises an Objective-C exception when a database connection
cannot be opened and /private/var/mobile/Media/iTunes_Control does not
exist (ML3DatabaseConnectionCheckPathiTunesControl, 24B156). A restore
makes the directory on an iPhone; this port never restores, so no iOS 27
root had it. -[ML3MusicLibrary libraryUID] rethrows through
databaseConnectionAllowingWrites:withBlock: and Settings aborts on 24B156
with that stack; atc aborts the same way on 24A446 and 24B156.

The new step 45-media-library.sh makes iTunes_Control, iTunes/ and
Music/ owned by mobile (501). It is on by default because it corrects a
directory every iPhone has; ENABLE_MEDIA_LIBRARY_DIRS=0 turns it off.
check-root.sh says whether the directory is there. Not run on a phone.
The ten frames of the Settings abort on 24B156, symbolicated: an
Objective-C exception rethrown from -[ML3MusicLibrary libraryUID]
through databaseConnectionAllowingWrites:withBlock:, and MusicLibrary's
path checks that raise it when iTunes_Control is missing. What was ruled
out, what differs from 24A446, the separate extension aborts and the
blank Bluetooth page. The test boot has not been run.
Phone 1, owner image o272 without camera arguments, root v9: Settings
aborted with the same ten frames one second after General > About was
tapped. The fix has still not been run on a phone.
@claudiusthebot
claudiusthebot marked this pull request as ready for review November 18, 2026 17:20
@claudiusthebot
claudiusthebot merged commit febbc12 into main Nov 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant